package com.chlitina.store.modules.inventory.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.inventory.entity.StoreInventoryOut;
public interface InventoryOutDao extends InventoryOutDaoCustom, CrudRepository<StoreInventoryOut, Long> {
	@Query("from StoreInventoryOut where STORE_ID = ?1")
	public List<StoreInventoryOut> findListByStore(Long id);
}

/**
 * DAO自定义接口
 * @author Songsong.XU
 */
interface InventoryOutDaoCustom extends BaseDao<StoreInventoryOut> {

}

/**
 * DAO自定义接口实现
 * @author Songsong.XU
 */
@Component
class InventoryOutDaoImpl extends BaseDaoImpl<StoreInventoryOut> implements InventoryOutDaoCustom {

}
